#pragma once
#include "SCore.h"
#include "STerrain.h"
#include "SFrustum.h"

class Sample : public SCore
{
public :
	STerrain		m_Terrain;
	SCamera			m_MinimapCamera;
	SFrustum		m_pFrustum;

public :
	LPDIRECT3DVERTEXBUFFER9	m_pVB;
	LPDIRECT3DINDEXBUFFER9	m_pIB;
	LPDIRECT3DTEXTURE9		m_pHeightTexture;
	LPDIRECT3DTEXTURE9		m_pDiffuseTexture;
	D3DXVECTOR3*			m_pveHeight;
	DWORD					m_dwNumFace;
	DWORD					m_dwHeight;
	DWORD					m_dwWidht;
	bool					m_bLeftActive;
	D3DVIEWPORT9			m_BackBufferVP;

public : 	
	virtual bool	Init();
	virtual bool	Frame();
	virtual bool	Render();
	virtual bool	Release();
	//virtual	bool	RestResource();

public :
	void			RenderScene();

public:
	Sample(void);
	virtual ~Sample(void);
};
